{%extends 'base.html'%}
{% block css %}

<style type="text/css">
    /* .table {

        margin: 20px;

    } */
</style>

{% endblock %}

{% block body %}

<div class="container">
    <div class="center">
        <h1>剩余查看次数：{{consumption_surplus}}</h1>
    </div>

    {% for i in info%}
    <table class="table table-bordered" style="margin: 20px;">
        <tr>
            <th>订单号</th>
            <td>{{i.prepay_id}}</td>
        </tr>
        <tr>
            <th>订单说明</th>
            <td>{{i.body}}</td>
        </tr>
        <tr>
            <th>订单金额</th>
            <td>{{i.total_fee}} 分</td>
        </tr>
        <tr>
            <th>订单日期</th>
            <td>{{i.regedate}}</td>
        </tr>

    </table>
    {% endfor %}

</div>
{% endblock %}


{% block script %}
<script>
    document.getElementById("demo").innerHTML = "订单";
</script>
{% endblock %}